import Loadable from 'react-loadable';

const Loading = ()=> null;

const Home = Loadable({
  loader: ()=> import('./Home'),
  loading: Loading
});

const Mall = Loadable({
  loader: ()=> import('./Mall'),
  loading: Loading
});

const Cart = Loadable({
  loader: ()=> import('./Cart'),
  loading: Loading
});

const Mine = Loadable({
  loader: ()=> import('./Mine'),
  loading: Loading
});

const Detail = Loadable({
  loader: ()=> import('./Detail'),
  loading: Loading
});

const NotFound = Loadable({
  loader: ()=> import('./NotFound'),
  loading: Loading
});

const Login = Loadable({
  loader: ()=> import('./Login'),
  loading: Loading
});

export {
  Home,
  Mall,
  Cart,
  Mine,
  Detail, 
  NotFound,
  Login
}